<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>yadis.test.discoverdata</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yadis-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/yadis/">Python-Yadis</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="yadis-module.html">Package&nbsp;yadis</a> ::
        <a href="yadis.test-module.html">Package&nbsp;test</a> ::
        Module&nbsp;discoverdata
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="yadis.test.discoverdata-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module discoverdata</h1><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html">source&nbsp;code</a></span><br /><br />
Module to make discovery data test cases available<br /><br />

<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#getDataName" class="summary-sig-name">getDataName</a>(<span class="summary-sig-arg">*components</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#getExampleXRDS" class="summary-sig-name">getExampleXRDS</a>()</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#readTests" class="summary-sig-name">readTests</a>(<span class="summary-sig-arg">filename</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#getData" class="summary-sig-name">getData</a>(<span class="summary-sig-arg">filename</span>,
        <span class="summary-sig-arg">name</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#fillTemplate" class="summary-sig-name">fillTemplate</a>(<span class="summary-sig-arg">test_name</span>,
        <span class="summary-sig-arg">template</span>,
        <span class="summary-sig-arg">base_url</span>,
        <span class="summary-sig-arg">example_xrds</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#generateSample" class="summary-sig-name">generateSample</a>(<span class="summary-sig-arg">test_name</span>,
        <span class="summary-sig-arg">base_url</span>,
        <span class="summary-sig-arg">example_xrds</span>=<span class="summary-sig-default">example_xrds</span>,
        <span class="summary-sig-arg">filename</span>=<span class="summary-sig-default">default_test_file</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="yadis.test.discoverdata-module.html#generateResult" class="summary-sig-name">generateResult</a>(<span class="summary-sig-arg">base_url</span>,
        <span class="summary-sig-arg">input_name</span>,
        <span class="summary-sig-arg">id_name</span>,
        <span class="summary-sig-arg">result_name</span>,
        <span class="summary-sig-arg">success</span>)</span>
  </td>
</tr>
</table>

<br />
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#tests_dir">tests_dir</a> = <code title="'/tmp/python-yadis.1X4os8/yadis/test'">'/tmp/python-yadis.1X4os8/yadis/test'</code>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#data_path">data_path</a> = <code title="'/tmp/python-yadis.1X4os8/yadis/test/data'">'/tmp/python-yadis.1X4os8/yadis/test/data'</code>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#testlist">testlist</a> = <code title="[(True, 'equiv', 'equiv', 'xrds'), (True, 'header', 'header', 'xrds'), (True, 'lowercase_header', 'lowercase_header', 'xrds'), (True, 'xrds', 'xrds', 'xrds'), (True, 'xrds_ctparam', 'xrds_ctparam', 'xrds_ctparam'), (True, 'xrds_ctcase', 'xrds_ctcase', 'xrds_ctcase'), (False, 'xrds_html', 'xrds_html', 'xrds_html'), (True, 'redir_equiv', 'equiv', 'xrds'), (True, 'redir_header', 'header', 'xrds'), (True, 'redir_xrds', 'xrds', 'xrds'), (False, 'redir_xrds_html', 'xrds_html', 'xrds_html'), (True, 'redir_redir_equiv', 'equiv', 'xrds'), (False, '404_server_response', None, None), (False, '404_with...">[(True, 'equiv', 'equiv', 'xrds'), (True, 'header', ...</code>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#example_xrds">example_xrds</a> = <code title="'&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;!-- Sample XRDS file at: NAME --&gt;\n&lt;xrds:XRDS\n    xmlns:xrds=&quot;xri://$xrds&quot;\n    xmlns=&quot;xri://$xrd*($v*2.0)&quot;&gt;\n  &lt;XRD&gt;\n\n    &lt;Service priority=&quot;0&quot;&gt;\n      &lt;Type&gt;http://example.com/&lt;/Type&gt;\n      &lt;URI&gt;http://www.openidenabled.com/&lt;/URI&gt;\n    &lt;/Service&gt;\n\n  &lt;/XRD&gt;\n&lt;/xrds:XRDS&gt;\n'">'&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;!-- Sample...</code>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#default_test_file">default_test_file</a> = <code title="'/tmp/python-yadis.1X4os8/yadis/test/data/test1-discover.txt'">'/tmp/python-yadis.1X4os8/yadis/test/data/test1-disc...</code>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <a href="yadis.test.discoverdata-module.html#discover_tests">discover_tests</a> = <code title="{}">{}</code>
  </td>
</tr>
</table>

<br />
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="getDataName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getDataName</span>(<span class="sig-arg">*components</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#getDataName">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="getExampleXRDS"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getExampleXRDS</span>()</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#getExampleXRDS">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="readTests"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">readTests</span>(<span class="sig-arg">filename</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#readTests">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="getData"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getData</span>(<span class="sig-arg">filename</span>,
        <span class="sig-arg">name</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#getData">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="fillTemplate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">fillTemplate</span>(<span class="sig-arg">test_name</span>,
        <span class="sig-arg">template</span>,
        <span class="sig-arg">base_url</span>,
        <span class="sig-arg">example_xrds</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#fillTemplate">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="generateSample"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generateSample</span>(<span class="sig-arg">test_name</span>,
        <span class="sig-arg">base_url</span>,
        <span class="sig-arg">example_xrds</span>=<span class="sig-default">example_xrds</span>,
        <span class="sig-arg">filename</span>=<span class="sig-default">default_test_file</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#generateSample">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="generateResult"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generateResult</span>(<span class="sig-arg">base_url</span>,
        <span class="sig-arg">input_name</span>,
        <span class="sig-arg">id_name</span>,
        <span class="sig-arg">result_name</span>,
        <span class="sig-arg">success</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="yadis.test.discoverdata-pysrc.html#generateResult">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="tests_dir"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">tests_dir</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<span class="variable-quote">'</span>/tmp/python-yadis.1X4os8/yadis/test<span class="variable-quote">'</span>                                  
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="data_path"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">data_path</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<span class="variable-quote">'</span>/tmp/python-yadis.1X4os8/yadis/test/data<span class="variable-quote">'</span>                             
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="testlist"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">testlist</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
[(True, 'equiv', 'equiv', 'xrds'),
 (True, 'header', 'header', 'xrds'),
 (True, 'lowercase_header', 'lowercase_header', 'xrds'),
 (True, 'xrds', 'xrds', 'xrds'),
 (True, 'xrds_ctparam', 'xrds_ctparam', 'xrds_ctparam'),
 (True, 'xrds_ctcase', 'xrds_ctcase', 'xrds_ctcase'),
 (False, 'xrds_html', 'xrds_html', 'xrds_html'),
 (True, 'redir_equiv', 'equiv', 'xrds'),
<span class="variable-ellipsis">...</span>                                                                    
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="example_xrds"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">example_xrds</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<span class="variable-quote">'''</span>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!-- Sample XRDS file at: NAME --&gt;
&lt;xrds:XRDS
    xmlns:xrds=&quot;xri://$xrds&quot;
    xmlns=&quot;xri://$xrd*($v*2.0)&quot;&gt;
  &lt;XRD&gt;

    &lt;Service priority=&quot;0&quot;&gt;
<span class="variable-ellipsis">...</span>                                                                    
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="default_test_file"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">default_test_file</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<span class="variable-quote">'</span>/tmp/python-yadis.1X4os8/yadis/test/data/test1-discover.txt<span class="variable-quote">'</span>          
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="discover_tests"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">discover_tests</h3>
  
  <dl><dt></dt><dd>
    <dl><dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
{}                                                                     
      </pre></td></tr></table></dd>
    </dl>
  </dd></dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yadis-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/yadis/">Python-Yadis</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Fri Dec  8 13:17:17 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
